package com.dynabook.ems.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName ems_work_order
 */
@TableName(value ="ems_work_order")
@Data
public class EmsWorkOrder implements Serializable {
    /**
     * 工单单号
     */
    @TableId(value = "work_order_num")
    private String workOrderNum;

    /**
     * 生产数量
     */
    @TableField(value = "production_quantity")
    private Integer productionQuantity;

    /**
     * bom的id
     */
    @TableField(value = "bom_id")
    private Long bomId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 工单状态
     */
    @TableField(value = "work_order_status")
    private Integer workOrderStatus;

    /**
     * 数据插入时间
     */
    @TableField(value = "insert_time")
    private LocalDateTime insertTime;

    /**
     * 数据更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 0 未删除 1删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    /**
     * 审批拒绝原因
     */
    @TableField(value = "reason")
    private String reason;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}